from exts import db
import shortuuid
from sqlalchemy_serializer import SerializerMixin

class UserModel(db.Model, SerializerMixin):
    serialize_only = ("id", "username", "email")

    __tablename__ = "user"
    id = db.Column(db.String(100),primary_key=True,default=shortuuid.uuid)
    username = db.Column(db.String(50),unique=True,nullable=False)
    email = db.Column(db.String(50), unique=True, nullable=False)